package cn.tedu.csmall.server.controller;

import cn.tedu.csmall.server.mapper.AlbumMapper;
import cn.tedu.csmall.server.pojo.dto.AlbumAddNewDTO;
import cn.tedu.csmall.server.service.IAlbumService;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lixin
 * @Date 2022/9/4
 * 相册管理
 */
@RestController
@RequestMapping("/album")
@Api(tags = "3.相册管理模块")
@Slf4j
public class AlbumController {
    @Autowired
    private IAlbumService albumService;
    @ApiOperation("添加相册")
    @ApiOperationSupport(order = 100)
    @PostMapping("add-new")
    public void addNew(AlbumAddNewDTO albumAddNewDTO){
        albumService.addNew(albumAddNewDTO);
    }
}
